New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: using smp_processor_id() in preemptible [00000000] code: zpool/841 #7609
Comments
I've hit this as well in master. Here is my kernel log https://gist.github.com/prometheanfire/2dd6edd5981908da24ec417f74dd6bac |
Have the same issue. Can't use newly compiled kernel, it always compiles on latest master on gentoo |
behlendorf
added a commit
to behlendorf/zfs
that referenced
this issue
Jun 7, 2018
In the new aggsum counters the CPU_SEQID macro should be surrounded by kpreempt_disable)() and kpreempt_enable() calls to prevent a Linux kernel BUG warning. The addsum_add() function use the cpuid to minimize lock contention when selecting a bucket, after selection the bucket is protected by a mutex and it is safe to reschedule the process to a different processor at any time. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue openzfs#7609
13 tasks
I've opened #7610 with the fix. If someone hitting this issue could verify that fix we can speed up getting it merged. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
System information
Describe the problem you're observing
Upon "zpool import", I get repeated "BUG: using smp_processor_id() in preemptible [00000000] code: zpool/841 caller is aggsum_add+0x29/0x180 [zfs]" messages in the kernel log (similar messages appear, with "code: zpool/841" replaced by "code: txg_sync/980, code: z_rd_int_0/846"). This looks a bit like issue #6232, it's a similar error message.
Describe how to reproduce the problem
git clone the zfs repository
./autogen && ./configure --prefix=/opt --sysconfdir=/etc --sbindir=/opt/sbin --libdir=/opt/lib --datadir=/opt/share --includedir=/opt/include --with-udevdir=/lib/udev --libexecdir=/opt/lib/zfs --with-config=all --with-linux=$KERNDIR/build/ --with-linux-obj=$KERNDIR/build/ && make && make install
I then update the kernel mkinitcpio and module dependencies, reboot, and run "zpool import mypool", and it immediately triggers the messages.
Include any warning/errors/backtraces from the system logs
The text was updated successfully, but these errors were encountered: